//
//  JwLocalCenter+Model.h
//  JwPack
//
//  Created by 陈警卫 on 2024-09-09.
//

#import "JwLocalCenter.h"

NS_ASSUME_NONNULL_BEGIN

@interface JwTokenModel : JwBaseModel

@property (nonatomic, strong) NSString *accessToken;
@property (nonatomic, strong) NSString *refreshToken;

@end

@interface JwUserModel : JwBaseModel

@property (nonatomic, strong) NSString *userId;
@property (nonatomic, strong) NSString *userName;
@property (nonatomic, strong) NSString *headImg;
@property (nonatomic, strong) NSString *email;
@property (nonatomic, strong) NSMutableArray *privileges;

@end

@interface JwLoginModel : JwBaseModel

@property (nonatomic, strong) JwTokenModel *token;
@property (nonatomic, strong) JwUserModel *userInfo;

@end

@interface JwLocalModel : JwBaseModel

@property (nonatomic, assign) BOOL isLogin;
@property (nonatomic, strong) JwLoginModel *loginModel;

@end

@interface JwLocalCenter (Model)

- (JwLoginModel *)loginModel;

- (JwTokenModel *)tokenModel;

- (JwUserModel *)userModel;


@end

NS_ASSUME_NONNULL_END
